﻿using System.Text;

namespace RockBus.Monitoring.DataContracts
{
    public static class PerformanceCounterExtensions
    {
        public static string ArrayToString<T>(this T[] arr)
        {
            var sb = new StringBuilder();
            for (int i = 0; i < arr.Length - 1; i++)
            {
                sb.Append(arr[i].ToString());
                sb.Append(", ");
            }
            sb.Append(arr[arr.Length - 1].ToString());

            return sb.ToString();
        }
    }
}